home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 November / Chip Kasım 2000.iso / prog / share / 11 / setup.exe / %MAINDIR% / DEMOS / CIRAS / EDITPHBK / EntryInf.Frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-09-07  |  26.9 KB  |  807 lines

  1. VERSION 4.00
  2. Begin VB.Form frmEntryInfo 
  3.    ClientHeight    =   4575
  4.    ClientLeft      =   2565
  5.    ClientTop       =   1500
  6.    ClientWidth     =   5460
  7.    Height          =   4980
  8.    Left            =   2505
  9.    LinkTopic       =   "Form1"
  10.    LockControls    =   -1  'True
  11.    ScaleHeight     =   4575
  12.    ScaleWidth      =   5460
  13.    Top             =   1155
  14.    Width           =   5580
  15.    Begin VB.VScrollBar VScroll1 
  16.       Height          =   1695
  17.       Left            =   4740
  18.       TabIndex        =   62
  19.       Top             =   0
  20.       Width           =   255
  21.    End
  22.    Begin VB.PictureBox Picture1 
  23.       BorderStyle     =   0  'None
  24.       Height          =   12400
  25.       Left            =   0
  26.       ScaleHeight     =   12405
  27.       ScaleMode       =   0  'User
  28.       ScaleWidth      =   4455
  29.       TabIndex        =   0
  30.       Top             =   0
  31.       Width           =   4455
  32.       Begin VB.TextBox txtRasOpts 
  33.          Height          =   285
  34.          Index           =   19
  35.          Left            =   2100
  36.          TabIndex        =   60
  37.          Top             =   11760
  38.          Width           =   1875
  39.       End
  40.       Begin VB.TextBox txtRasOpts 
  41.          Height          =   285
  42.          Index           =   18
  43.          Left            =   2100
  44.          TabIndex        =   58
  45.          Top             =   11460
  46.          Width           =   1875
  47.       End
  48.       Begin VB.TextBox txtRasOpts 
  49.          Height          =   285
  50.          Index           =   17
  51.          Left            =   2100
  52.          TabIndex        =   56
  53.          Top             =   11160
  54.          Width           =   1875
  55.       End
  56.       Begin VB.TextBox txtRasOpts 
  57.          Height          =   285
  58.          Index           =   16
  59.          Left            =   2100
  60.          TabIndex        =   54
  61.          Top             =   10860
  62.          Width           =   1875
  63.       End
  64.       Begin VB.TextBox txtRasOpts 
  65.          Height          =   285
  66.          Index           =   15
  67.          Left            =   2100
  68.          TabIndex        =   52
  69.          Top             =   10560
  70.          Width           =   1875
  71.       End
  72.       Begin VB.TextBox txtRasOpts 
  73.          Height          =   285
  74.          Index           =   14
  75.          Left            =   2100
  76.          TabIndex        =   50
  77.          Top             =   10260
  78.          Width           =   1875
  79.       End
  80.       Begin VB.TextBox txtRasOpts 
  81.          Height          =   285
  82.          Index           =   13
  83.          Left            =   2100
  84.          TabIndex        =   48
  85.          Top             =   9960
  86.          Width           =   1875
  87.       End
  88.       Begin VB.TextBox txtRasOpts 
  89.          Height          =   285
  90.          Index           =   12
  91.          Left            =   2100
  92.          TabIndex        =   46
  93.          Top             =   9660
  94.          Width           =   1875
  95.       End
  96.       Begin VB.TextBox txtRasOpts 
  97.          Height          =   285
  98.          Index           =   11
  99.          Left            =   2100
  100.          TabIndex        =   44
  101.          Top             =   9360
  102.          Width           =   1875
  103.       End
  104.       Begin VB.TextBox txtRasOpts 
  105.          Height          =   285
  106.          Index           =   10
  107.          Left            =   2100
  108.          TabIndex        =   42
  109.          Top             =   9060
  110.          Width           =   1875
  111.       End
  112.       Begin VB.ComboBox cbRasOpts 
  113.          Height          =   315
  114.          ItemData        =   "EntryInf.frx":0000
  115.          Left            =   2100
  116.          List            =   "EntryInf.frx":0010
  117.          Style           =   2  'Dropdown List
  118.          TabIndex        =   41
  119.          Top             =   8760
  120.          Width           =   1875
  121.       End
  122.       Begin VB.CheckBox chkRasOpts 
  123.          Alignment       =   1  'Right Justify
  124.          Caption         =   "AllowTcpIp"
  125.          Height          =   255
  126.          Index           =   19
  127.          Left            =   60
  128.          TabIndex        =   39
  129.          Top             =   8460
  130.          Width           =   3915
  131.       End
  132.       Begin VB.CheckBox chkRasOpts 
  133.          Alignment       =   1  'Right Justify
  134.          Caption         =   "AllowIpxSpx"
  135.          Height          =   255
  136.          Index           =   18
  137.          Left            =   60
  138.          TabIndex        =   38
  139.          Top             =   8160
  140.          Width           =   3915
  141.       End
  142.       Begin VB.CheckBox chkRasOpts 
  143.          Alignment       =   1  'Right Justify
  144.          Caption         =   "AllowNetBEUI"
  145.          Height          =   255
  146.          Index           =   17
  147.          Left            =   60
  148.          TabIndex        =   37
  149.          Top             =   7860
  150.          Width           =   3915
  151.       End
  152.       Begin VB.TextBox txtRasOpts 
  153.          Height          =   285
  154.          Index           =   9
  155.          Left            =   2100
  156.          TabIndex        =   35
  157.          Top             =   7560
  158.          Width           =   1875
  159.       End
  160.       Begin VB.TextBox txtRasOpts 
  161.          Height          =   285
  162.          Index           =   8
  163.          Left            =   2100
  164.          TabIndex        =   33
  165.          Top             =   7260
  166.          Width           =   1875
  167.       End
  168.       Begin VB.TextBox txtRasOpts 
  169.          Height          =   285
  170.          Index           =   7
  171.          Left            =   2100
  172.          TabIndex        =   31
  173.          Top             =   6960
  174.          Width           =   1875
  175.       End
  176.       Begin VB.TextBox txtRasOpts 
  177.          Height          =   285
  178.          Index           =   6
  179.          Left            =   2100
  180.          TabIndex        =   29
  181.          Top             =   6660
  182.          Width           =   1875
  183.       End
  184.       Begin VB.TextBox txtRasOpts 
  185.          Height          =   285
  186.          Index           =   5
  187.          Left            =   2100
  188.          TabIndex        =   27
  189.          Top             =   6360
  190.          Width           =   1875
  191.       End
  192.       Begin VB.TextBox txtRasOpts 
  193.          Height          =   285
  194.          Index           =   4
  195.          Left            =   2100
  196.          TabIndex        =   25
  197.          Top             =   6060
  198.          Width           =   1875
  199.       End
  200.       Begin VB.TextBox txtRasOpts 
  201.          Height          =   285
  202.          Index           =   3
  203.          Left            =   2100
  204.          TabIndex        =   23
  205.          Top             =   5760
  206.          Width           =   1875
  207.       End
  208.       Begin VB.TextBox txtRasOpts 
  209.          Height          =   285
  210.          Index           =   2
  211.          Left            =   2100
  212.          TabIndex        =   21
  213.          Top             =   5460
  214.          Width           =   1875
  215.       End
  216.       Begin VB.TextBox txtRasOpts 
  217.          Height          =   285
  218.          Index           =   1
  219.          Left            =   2100
  220.          TabIndex        =   19
  221.          Top             =   5160
  222.          Width           =   1875
  223.       End
  224.       Begin VB.TextBox txtRasOpts 
  225.          Height          =   285
  226.          Index           =   0
  227.          Left            =   2100
  228.          TabIndex        =   17
  229.          Top             =   4860
  230.          Width           =   1875
  231.       End
  232.       Begin VB.CheckBox chkRasOpts 
  233.          Alignment       =   1  'Right Justify
  234.          Caption         =   "SecureLocalFiles"
  235.          Height          =   255
  236.          Index           =   16
  237.          Left            =   60
  238.          TabIndex        =   16
  239.          Top             =   4560
  240.          Width           =   3915
  241.       End
  242.       Begin VB.CheckBox chkRasOpts 
  243.          Alignment       =   1  'Right Justify
  244.          Caption         =   "UseLogonCredentials"
  245.          Height          =   255
  246.          Index           =   14
  247.          Left            =   60
  248.          TabIndex        =   15
  249.          Top             =   4260
  250.          Width           =   3915
  251.       End
  252.       Begin VB.CheckBox chkRasOpts 
  253.          Alignment       =   1  'Right Justify
  254.          Caption         =   "LogonToNetwork"
  255.          Height          =   255
  256.          Index           =   13
  257.          Left            =   60
  258.          TabIndex        =   14
  259.          Top             =   3960
  260.          Width           =   3915
  261.       End
  262.       Begin VB.CheckBox chkRasOpts 
  263.          Alignment       =   1  'Right Justify
  264.          Caption         =   "RequireDataEncryption"
  265.          Height          =   255
  266.          Index           =   12
  267.          Left            =   60
  268.          TabIndex        =   13
  269.          Top             =   3660
  270.          Width           =   3915
  271.       End
  272.       Begin VB.CheckBox chkRasOpts 
  273.          Alignment       =   1  'Right Justify
  274.          Caption         =   "RequireMsEncryptedPassword"
  275.          Height          =   255
  276.          Index           =   11
  277.          Left            =   60
  278.          TabIndex        =   12
  279.          Top             =   3360
  280.          Width           =   3915
  281.       End
  282.       Begin VB.CheckBox chkRasOpts 
  283.          Alignment       =   1  'Right Justify
  284.          Caption         =   "RequireEncryptedPassword"
  285.          Height          =   255
  286.          Index           =   10
  287.          Left            =   60
  288.          TabIndex        =   11
  289.          Top             =   3060
  290.          Width           =   3915
  291.       End
  292.       Begin VB.CheckBox chkRasOpts 
  293.          Alignment       =   1  'Right Justify
  294.          Caption         =   "SoftwareCompression"
  295.          Height          =   255
  296.          Index           =   9
  297.          Left            =   60
  298.          TabIndex        =   10
  299.          Top             =   2760
  300.          Width           =   3915
  301.       End
  302.       Begin VB.CheckBox chkRasOpts 
  303.          Alignment       =   1  'Right Justify
  304.          Caption         =   "DisplayModemStatus"
  305.          Height          =   255
  306.          Index           =   8
  307.          Left            =   60
  308.          TabIndex        =   9
  309.          Top             =   2460
  310.          Width           =   3915
  311.       End
  312.       Begin VB.CheckBox chkRasOpts 
  313.          Alignment       =   1  'Right Justify
  314.          Caption         =   "TerminalAfterDial"
  315.          Height          =   255
  316.          Index           =   7
  317.          Left            =   60
  318.          TabIndex        =   8
  319.          Top             =   2160
  320.          Width           =   3915
  321.       End
  322.       Begin VB.CheckBox chkRasOpts 
  323.          Alignment       =   1  'Right Justify
  324.          Caption         =   "TerminalBeforeDial"
  325.          Height          =   255
  326.          Index           =   6
  327.          Left            =   60
  328.          TabIndex        =   7
  329.          Top             =   1860
  330.          Width           =   3915
  331.       End
  332.       Begin VB.CheckBox chkRasOpts 
  333.          Alignment       =   1  'Right Justify
  334.          Caption         =   "DisableLcpExtensions"
  335.          Height          =   255
  336.          Index           =   5
  337.          Left            =   60
  338.          TabIndex        =   6
  339.          Top             =   1560
  340.          Width           =   3915
  341.       End
  342.       Begin VB.CheckBox chkRasOpts 
  343.          Alignment       =   1  'Right Justify
  344.          Caption         =   "RemoteDefaultGateway"
  345.          Height          =   255
  346.          Index           =   4
  347.          Left            =   60
  348.          TabIndex        =   5
  349.          Top             =   1260
  350.          Width           =   3915
  351.       End
  352.       Begin VB.CheckBox chkRasOpts 
  353.          Alignment       =   1  'Right Justify
  354.          Caption         =   "IPHeaderCompression"
  355.          Height          =   255
  356.          Index           =   3
  357.          Left            =   60
  358.          TabIndex        =   4
  359.          Top             =   960
  360.          Width           =   3915
  361.       End
  362.       Begin VB.CheckBox chkRasOpts 
  363.          Alignment       =   1  'Right Justify
  364.          Caption         =   "ServerAssignedNameServers"
  365.          Height          =   255
  366.          Index           =   2
  367.          Left            =   60
  368.          TabIndex        =   3
  369.          Top             =   660
  370.          Width           =   3915
  371.       End
  372.       Begin VB.CheckBox chkRasOpts 
  373.          Alignment       =   1  'Right Justify
  374.          Caption         =   "ServerAssignedIPaddress"
  375.          Height          =   255
  376.          Index           =   1
  377.          Left            =   60
  378.          TabIndex        =   2
  379.          Top             =   360
  380.          Width           =   3915
  381.       End
  382.       Begin VB.CheckBox chkRasOpts 
  383.          Alignment       =   1  'Right Justify
  384.          Caption         =   "UseCountryAndAreaCodes"
  385.          Height          =   255
  386.          Index           =   0
  387.          Left            =   60
  388.          TabIndex        =   1
  389.          Top             =   60
  390.          Width           =   3915
  391.       End
  392.       Begin VB.Label Label1 
  393.          Caption         =   "Channels"
  394.          Height          =   255
  395.          Index           =   19
  396.          Left            =   60
  397.          TabIndex        =   61
  398.          Top             =   11760
  399.          Width           =   1995
  400.       End
  401.       Begin VB.Label Label1 
  402.          Caption         =   "X25UserData"
  403.          Height          =   255
  404.          Index           =   18
  405.          Left            =   60
  406.          TabIndex        =   59
  407.          Top             =   11460
  408.          Width           =   1995
  409.       End
  410.       Begin VB.Label Label1 
  411.          Caption         =   "X25Facilities"
  412.          Height          =   255
  413.          Index           =   17
  414.          Left            =   60
  415.          TabIndex        =   57
  416.          Top             =   11160
  417.          Width           =   1995
  418.       End
  419.       Begin VB.Label Label1 
  420.          Caption         =   "X25Address"
  421.          Height          =   255
  422.          Index           =   16
  423.          Left            =   60
  424.          TabIndex        =   55
  425.          Top             =   10860
  426.          Width           =   1995
  427.       End
  428.       Begin VB.Label Label1 
  429.          Caption         =   "X25PadType"
  430.          Height          =   255
  431.          Index           =   15
  432.          Left            =   60
  433.          TabIndex        =   53
  434.          Top             =   10560
  435.          Width           =   1995
  436.       End
  437.       Begin VB.Label Label1 
  438.          Caption         =   "DeviceName"
  439.          Height          =   255
  440.          Index           =   14
  441.          Left            =   60
  442.          TabIndex        =   51
  443.          Top             =   10260
  444.          Width           =   1995
  445.       End
  446.       Begin VB.Label Label1 
  447.          Caption         =   "DeviceType"
  448.          Height          =   255
  449.          Index           =   13
  450.          Left            =   60
  451.          TabIndex        =   49
  452.          Top             =   9960
  453.          Width           =   1995
  454.       End
  455.       Begin VB.Label Label1 
  456.          Caption         =   "AutoDialFunc"
  457.          Height          =   255
  458.          Index           =   12
  459.          Left            =   60
  460.          TabIndex        =   47
  461.          Top             =   9660
  462.          Width           =   1995
  463.       End
  464.       Begin VB.Label Label1 
  465.          Caption         =   "AutoDialDll"
  466.          Height          =   255
  467.          Index           =   11
  468.          Left            =   60
  469.          TabIndex        =   45
  470.          Top             =   9360
  471.          Width           =   1995
  472.       End
  473.       Begin VB.Label Label1 
  474.          Caption         =   "Script"
  475.          Height          =   255
  476.          Index           =   10
  477.          Left            =   60
  478.          TabIndex        =   43
  479.          Top             =   9060
  480.          Width           =   1995
  481.       End
  482.       Begin VB.Label Label2 
  483.          Caption         =   "DialUpServerType"
  484.          Height          =   255
  485.          Left            =   60
  486.          TabIndex        =   40
  487.          Top             =   8760
  488.          Width           =   1995
  489.       End
  490.       Begin VB.Label Label1 
  491.          Caption         =   "FrameSize"
  492.          Height          =   255
  493.          Index           =   9
  494.          Left            =   60
  495.          TabIndex        =   36
  496.          Top             =   7560
  497.          Width           =   1995
  498.       End
  499.       Begin VB.Label Label1 
  500.          Caption         =   "SecondaryWINS"
  501.          Height          =   255
  502.          Index           =   8
  503.          Left            =   60
  504.          TabIndex        =   34
  505.          Top             =   7260
  506.          Width           =   1995
  507.       End
  508.       Begin VB.Label Label1 
  509.          Caption         =   "PrimaryWINS"
  510.          Height          =   255
  511.          Index           =   7
  512.          Left            =   60
  513.          TabIndex        =   32
  514.          Top             =   6960
  515.          Width           =   1995
  516.       End
  517.       Begin VB.Label Label1 
  518.          Caption         =   "SecondaryDNS"
  519.          Height          =   255
  520.          Index           =   6
  521.          Left            =   60
  522.          TabIndex        =   30
  523.          Top             =   6660
  524.          Width           =   1995
  525.       End
  526.       Begin VB.Label Label1 
  527.          Caption         =   "PrimaryDNS"
  528.          Height          =   255
  529.          Index           =   5
  530.          Left            =   60
  531.          TabIndex        =   28
  532.          Top             =   6360
  533.          Width           =   1995
  534.       End
  535.       Begin VB.Label Label1 
  536.          Caption         =   "IPaddress"
  537.          Height          =   255
  538.          Index           =   4
  539.          Left            =   60
  540.          TabIndex        =   26
  541.          Top             =   6060
  542.          Width           =   1995
  543.       End
  544.       Begin VB.Label Label1 
  545.          Caption         =   "LocalPhoneNumber"
  546.          Height          =   255
  547.          Index           =   3
  548.          Left            =   60
  549.          TabIndex        =   24
  550.          Top             =   5760
  551.          Width           =   1995
  552.       End
  553.       Begin VB.Label Label1 
  554.          Caption         =   "AreaCode"
  555.          Height          =   255
  556.          Index           =   2
  557.          Left            =   60
  558.          TabIndex        =   22
  559.          Top             =   5460
  560.          Width           =   1995
  561.       End
  562.       Begin VB.Label Label1 
  563.          Caption         =   "CountryCode"
  564.          Height          =   255
  565.          Index           =   1
  566.          Left            =   60
  567.          TabIndex        =   20
  568.          Top             =   5160
  569.          Width           =   1995
  570.       End
  571.       Begin VB.Label Label1 
  572.          Caption         =   "CountryID"
  573.          Height          =   255
  574.          Index           =   0
  575.          Left            =   60
  576.          TabIndex        =   18
  577.          Top             =   4860
  578.          Width           =   1995
  579.       End
  580.    End
  581. Attribute VB_Name = "frmEntryInfo"
  582. Attribute VB_Creatable = False
  583. Attribute VB_Exposed = False
  584. Dim LastText(26) As String
  585. Private Sub chkRasOpts_Click(Index As Integer)
  586. If ChangingInCode = False Then
  587.     With PBE
  588.         .UseCountryAndAreaCodes = -chkRasOpts(0).Value
  589.         .ServerAssignedIPaddress = -chkRasOpts(1).Value
  590.         .ServerAssignedNameServers = -chkRasOpts(2).Value
  591.         .IPHeaderCompression = -chkRasOpts(3).Value
  592.         .RemoteDefaultGateway = -chkRasOpts(4).Value
  593.         .DisableLcpExtensions = -chkRasOpts(5).Value
  594.         .TerminalBeforeDial = -chkRasOpts(6).Value
  595.         .TerminalAfterDial = -chkRasOpts(7).Value
  596.         .DisplayModemStatus = -chkRasOpts(8).Value
  597.         .SoftwareCompression = -chkRasOpts(9).Value
  598.         .RequireEncryptedPassword = -chkRasOpts(10).Value
  599.         .RequireMsEncryptedPassword = -chkRasOpts(11).Value
  600.         .RequireDataEncryption = -chkRasOpts(12).Value
  601.         .LogOnToNetwork = -chkRasOpts(13).Value
  602.         .UseLogonCredentials = -chkRasOpts(14).Value
  603.         .SecureLocalFiles = -chkRasOpts(16).Value
  604.         .AllowNetBEUI = -chkRasOpts(17).Value
  605.         .AllowIpxSpx = -chkRasOpts(18).Value
  606.         .AllowTcpIp = -chkRasOpts(19).Value
  607.     End With
  608. End If
  609. End Sub
  610. Private Sub cbRasOpts_Click()
  611. Dim SvrType As Long
  612. If ChangingInCode = False Then
  613.     SvrType = Val(cbRasOpts.List(cbRasOpts.ListIndex))
  614.     PBE.DialUpServerType = SvrType
  615. End If
  616. End Sub
  617. Private Sub Form_Load()
  618. Dim X As Long
  619. Me.Width = chkRasOpts(0).Width + (chkRasOpts(0).Left) + ((Me.Width - Me.ScaleWidth) * 2) + VScroll1.Width
  620. Me.Height = Screen.Height * 0.8
  621. Picture1.Height = Label1(19).Top + Label1(19).Height + chkRasOpts(0).Top
  622. frmMain.cmdButtons(1).Enabled = True
  623. Me.Left = (Screen.Width - Me.Width) / 2
  624. Me.Top = (Screen.Height - Me.Height) / 2
  625. With PBE
  626.     chkRasOpts(0).Value = -.UseCountryAndAreaCodes
  627.     chkRasOpts(1).Value = -.ServerAssignedIPaddress
  628.     chkRasOpts(2).Value = -.ServerAssignedNameServers
  629.     chkRasOpts(3).Value = -.IPHeaderCompression
  630.     chkRasOpts(4).Value = -.RemoteDefaultGateway
  631.     chkRasOpts(5).Value = -.DisableLcpExtensions
  632.     chkRasOpts(6).Value = -.TerminalBeforeDial
  633.     chkRasOpts(7).Value = -.TerminalAfterDial
  634.     chkRasOpts(8).Value = -.DisplayModemStatus
  635.     chkRasOpts(9).Value = -.SoftwareCompression
  636.     chkRasOpts(10).Value = -.RequireEncryptedPassword
  637.     chkRasOpts(11).Value = -.RequireMsEncryptedPassword
  638.     chkRasOpts(12).Value = -.RequireDataEncryption
  639.     chkRasOpts(13).Value = -.LogOnToNetwork
  640.     chkRasOpts(14).Value = -.UseLogonCredentials
  641.     chkRasOpts(16).Value = -.SecureLocalFiles
  642.     chkRasOpts(17).Value = -.AllowNetBEUI
  643.     chkRasOpts(18).Value = -.AllowIpxSpx
  644.     chkRasOpts(19).Value = -.AllowTcpIp
  645.     txtRasOpts(0).Text = .CountryID
  646.     txtRasOpts(1).Text = .CountryCode
  647.     txtRasOpts(2).Text = .AreaCode
  648.     txtRasOpts(3).Text = .LocalPhoneNumber
  649.     txtRasOpts(4).Text = .IPaddress
  650.     txtRasOpts(5).Text = .PrimaryDNS
  651.     txtRasOpts(6).Text = .SecondaryDNS
  652.     txtRasOpts(7).Text = .PrimaryWINS
  653.     txtRasOpts(8).Text = .SecondaryWINS
  654.     txtRasOpts(9).Text = .FrameSize
  655.     txtRasOpts(10).Text = .Script
  656.     txtRasOpts(11).Text = .AutoDialDll
  657.     txtRasOpts(12).Text = .AutoDialFunc
  658.     txtRasOpts(13).Text = .DeviceType
  659.     txtRasOpts(14).Text = .DeviceName
  660.     txtRasOpts(15).Text = .X25PadType
  661.     txtRasOpts(16).Text = .X25Address
  662.     txtRasOpts(17).Text = .X25Facilities
  663.     txtRasOpts(18).Text = .X25UserData
  664.     txtRasOpts(19).Text = .Channels
  665.     SvrType = .DialUpServerType
  666.     Select Case SvrType
  667.         Case 0
  668.             cbRasOpts.ListIndex = 0
  669.         Case 1
  670.             cbRasOpts.ListIndex = 1
  671.         Case 2
  672.             cbRasOpts.ListIndex = 2
  673.         Case 4
  674.             cbRasOpts.ListIndex = 3
  675.         Case Else
  676.             cbRasOpts.AddItem Format$(SvrType, "") & " (Unknown)"
  677.             For X = 0 To cbRasOpts.ListCount
  678.                 If Val(cbRasOpts.List(X)) = SvrType Then
  679.                     cbRasOpts.ListIndex = X
  680.                     Exit For
  681.                 End If
  682.             Next
  683.     End Select
  684. End With
  685.                         
  686. For X = 0 To 19
  687.     LastText(X) = txtRasOpts(X).Text
  688.                         
  689. End Sub
  690. Private Sub Form_Resize()
  691. Picture1.Visible = False
  692. Picture1.Move 0, Picture1.Top, Me.ScaleWidth - VScroll1.Width, Picture1.Height
  693. Picture1.Visible = True
  694. VScroll1.Left = Me.ScaleWidth - VScroll1.Width
  695. VScroll1.Height = Me.ScaleHeight
  696. VScroll1.Max = Picture1.Height - Me.ScaleHeight
  697. VScroll1.SmallChange = chkRasOpts(0).Height + chkRasOpts(0).Top
  698. VScroll1.LargeChange = Me.ScaleHeight
  699. End Sub
  700. Private Sub Form_Unload(Cancel As Integer)
  701. frmMain.cmdButtons(1).Enabled = False
  702. End Sub
  703. Private Sub txtRasOpts_Change(Index As Integer)
  704. If ChangingInCode = False Then
  705.     If txtRasOpts(Index).Text <> "" Then
  706.         LastText(Index) = txtRasOpts(Index).Text
  707.     End If
  708.     With PBE
  709.         Select Case Index
  710.             Case 0:
  711.                 If txtRasOpts(Index).Text <> "" Then
  712.                     .CountryID = txtRasOpts(0).Text
  713.                 Else
  714.                     ChangingInCode = True
  715.                     txtRasOpts(Index).Text = LastText(Index)
  716.                     ChangingInCode = False
  717.                     Beep
  718.                 End If
  719.                 
  720.             Case 1:
  721.                 If txtRasOpts(Index).Text <> "" Then
  722.                     .CountryCode = txtRasOpts(1).Text
  723.                 Else
  724.                     ChangingInCode = True
  725.                     txtRasOpts(Index).Text = LastText(Index)
  726.                     ChangingInCode = False
  727.                     Beep
  728.                 End If
  729.             
  730.             Case 2:
  731.                 If txtRasOpts(Index).Text <> "" Then
  732.                     .AreaCode = txtRasOpts(2).Text
  733.                 Else
  734.                     .AreaCode = " "
  735.                 End If
  736.             
  737.             Case 3:
  738.                 If txtRasOpts(Index).Text <> "" Then
  739.                     .LocalPhoneNumber = txtRasOpts(3).Text
  740.                 Else
  741.                     ChangingInCode = True
  742.                     txtRasOpts(Index).Text = LastText(Index)
  743.                     ChangingInCode = False
  744.                     Beep
  745.                 End If
  746.             
  747.             Case 4: .IPaddress = txtRasOpts(4).Text
  748.             Case 5: .PrimaryDNS = txtRasOpts(5).Text
  749.             Case 6: .SecondaryDNS = txtRasOpts(6).Text
  750.             Case 7: .PrimaryWINS = txtRasOpts(7).Text
  751.             Case 8: .SecondaryWINS = txtRasOpts(8).Text
  752.             Case 9: .FrameSize = txtRasOpts(9).Text
  753.             Case 10: .Script = txtRasOpts(10).Text
  754.             Case 11: .AutoDialDll = txtRasOpts(11).Text
  755.             Case 12: .AutoDialFunc = txtRasOpts(12).Text
  756.             Case 13: .DeviceType = txtRasOpts(13).Text
  757.             Case 14: .DeviceName = txtRasOpts(14).Text
  758.             Case 15: .X25PadType = txtRasOpts(15).Text
  759.             Case 16: .X25Address = txtRasOpts(16).Text
  760.             Case 17: .X25Facilities = txtRasOpts(17).Text
  761.             Case 18: .X25UserData = txtRasOpts(18).Text
  762.             
  763.             Case 19:
  764.                 If txtRasOpts(Index).Text <> "" Then
  765.                     .Channels = txtRasOpts(19).Text
  766.                 Else
  767.                     ChangingInCode = True
  768.                     txtRasOpts(Index).Text = LastText(Index)
  769.                     ChangingInCode = False
  770.                     Beep
  771.                 End If
  772.                                 
  773.         End Select
  774.     End With
  775. End If
  776. End Sub
  777. Private Sub txtRasOpts_KeyPress(Index As Integer, KeyAscii As Integer)
  778. Select Case Index
  779.     Case 0, 1, 9, 19, 20, 21, 22, 23, 24, 26, 26
  780.         Select Case KeyAscii
  781.             Case 48 To 57, 8
  782.                 'Numeric keys and backspace OK
  783.             Case Else
  784.                 'Others not allowed
  785.                 KeyAscii = 0
  786.         End Select
  787.     Case 4, 5, 6, 7, 8
  788.         Select Case KeyAscii
  789.             Case 48 To 57, 46
  790.                 'Numeric keys, dots, and backspace OK
  791.             Case Else
  792.                 'Others not allowed
  793.                 KeyAscii = 0
  794.         End Select
  795. End Select
  796.         
  797. End Sub
  798. Private Sub VScroll1_Change()
  799. Picture1.Visible = False
  800. Picture1.Top = -VScroll1.Value
  801. Picture1.Visible = True
  802. End Sub
  803. Private Sub VScroll1_Scroll()
  804. Picture1.Top = -VScroll1.Value
  805. Picture1.Refresh
  806. End Sub
  807.